/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.po.ExaminationPaperRulePO;
import com.xy.biz.ts.domain.query.ExaminationPaperRuleQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-3-8
 */
public interface ExaminationPaperRuleDao {

	/**
	 * 保存
	 *
	 * @param examinationPaperRulePO
	 */
	int saveExaminationPaperRule(ExaminationPaperRulePO examinationPaperRulePO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationPaperRule(Collection<ExaminationPaperRulePO> collection);

	/**
	 * 更新
	 *
	 * @param examinationPaperRulePO
	 */
	int updateExaminationPaperRule(ExaminationPaperRulePO examinationPaperRulePO);

	/**
	 * 删除
	 *
	 * @param examinationPaperRuleId
	 */
	int deleteExaminationPaperRule(Long examinationPaperRuleId);

	/**
	 * 查找一个
	 *
	 * @param examinationPaperRuleId
	 * @return
	 */
	ExaminationPaperRulePO getExaminationPaperRule(Long examinationPaperRuleId);

	/**
	 * 查找一个
	 *
	 * @return
	 */
	ExaminationPaperRulePO getExaminationPaperRuleByQuery(ExaminationPaperRuleQuery query);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ExaminationPaperRulePO> listExaminationPaperRuleById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ExaminationPaperRulePO> listExaminationPaperRule(ExaminationPaperRuleQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countExaminationPaperRule(ExaminationPaperRuleQuery query);

	int deleteRuleExaminationPaper(Long examinationPaperRuleId);
}
